package com.wanxi.school;

public class SchoolTest {
    public static void main(String[] args) {
        SchoolPeople people1 = new Student("王海运", 21);
        SchoolPeople people2 = new Teacher("陈明", 28);

        Student student = new Student("江姐",25,20130050);


        System.out.println(people1);
        people1.work();
        System.out.println(people2);
        people2.work();


        System.out.println(student);
        student.work();
    }
}